package com.ideaction.controller;

import com.alibaba.fastjson.JSON;
import com.ideaction.entity.activity.ActivityModel;
import com.ideaction.globalconst.Result;
import com.ideaction.req.PlayerCommonReqBody;
import com.ideaction.service.ActivityService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;

@Slf4j
@RestController
public class ActivityController {
    
    @Autowired
    private ActivityService activityService;
    
    /**
     * 获取活动信息
     *
     * @return
     */
    @PostMapping("/GetActivityMessage")
    public String getActivity(@RequestBody PlayerCommonReqBody playerCommonReqBody) {
        return Result.build().response();
        // return activityService.getActivityMessage(playerCommonReqBody);
    }
    
    /**
     * 获取活动奖励
     *
     * @param playerCommonReqBody
     * @return
     */
    @PostMapping("/GetActivityReward")
    public String getActivityReward(@RequestBody PlayerCommonReqBody playerCommonReqBody) {
        return Result.build().response();
        //        Result activityReward = activityService.getActivityReward(playerCommonReqBody);
        //        return activityReward.response();
    }
}
